<? 
	session_start();
	include ('conn.php');
	
	$db = get_conn();


		
	$sql = "delete from vehicules_options_granted";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}


	$sql = "delete from users_access ";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}		
	
	
	$sql = "delete from users_options_granted";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}	
	
	
	$sql = "delete from payments ";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}
	
	$sql = "delete from invoices ";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}	
	
	$sql = "delete from locations ";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}

		
		
	$sql = "delete from user_rol where id_user > 1 ";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}
	
	
	$sql = "delete from users where id_user > 1";
	$result = mysql_query($sql);
	if(!$result){
		error_handling(__FUNCTION__.$sql,mysql_error());
	}		
	
	

	
		
	
	
	
	
	
	
	
			
?>